
CXX=g++
FLAGS=-w -Wall -O3 -I ../include
BIN=transformer_xml transformer_txt
all:$(BIN)
	
transformer_xml:../loggers/XmlLogger.cpp ../include/XmlLogger.hpp Transformer.cpp Transformer.h
	@printf "\033[34;1m\nCompilation du transformeur XML.\n\033[m"
	$(CXX) $(FLAGS) -o transformer_xml XmlTransformer.cpp ../loggers/XmlLogger.cpp BinaryReader.cpp Transformer.cpp

transformer_txt:Transformer.cpp Transformer.h ../loggers/TxtLogger.cpp ../loggers/TxtLogger.h
	@printf "\033[34;1m\nCompilation du transformeur TXT.\n\033[m"
	$(CXX) $(FLAGS) -o transformer_txt  TxtTransformer.cpp ../loggers/TxtLogger.cpp BinaryReader.cpp Transformer.cpp


clean:
	rm -rf $(BIN) *~ *.xml *.txt

